﻿namespace Ross.BSCSystem
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Http.Controllers;

    public class CustomBasicAuthenticationFilter : BasicAuthenticationFilter
    {
        public override bool OnAuthorize(string username, string password, HttpActionContext actionContext)
        {
            if (username == "admin" && password == "123qwe")
                return true;
            else
                return false;
        }
    }
}